home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / internal / CMUniOp.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  986 b   |  35 lines

  1. package com.ibm.xml.internal;
  2.  
  3. class CMUniOp extends CMNode {
  4.    private CMNode fChild;
  5.  
  6.    CMUniOp(int var1, CMNode var2) throws CMException {
  7.       super(var1);
  8.       if (((CMNode)this).type() != 1 && ((CMNode)this).type() != 2 && ((CMNode)this).type() != 3) {
  9.          throw new CMException(153);
  10.       } else {
  11.          this.fChild = var2;
  12.       }
  13.    }
  14.  
  15.    final CMNode getChild() {
  16.       return this.fChild;
  17.    }
  18.  
  19.    boolean isNullable() throws CMException {
  20.       if (((CMNode)this).type() != 1 && ((CMNode)this).type() != 3) {
  21.          return true;
  22.       } else {
  23.          throw new CMException(153);
  24.       }
  25.    }
  26.  
  27.    protected void calcFirstPos(CMStateSet var1) throws CMException {
  28.       var1.setTo(this.fChild.firstPos());
  29.    }
  30.  
  31.    protected void calcLastPos(CMStateSet var1) throws CMException {
  32.       var1.setTo(this.fChild.lastPos());
  33.    }
  34. }
  35.